package com.alibaba.ai.controller;

import com.alibaba.ai.service.RankingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 王振东
 */
@RestController
@RequestMapping("/index5")
public class RankingController {
    //小区涨跌排行榜
    @Autowired
    private RankingService rankingService;
    @GetMapping("/list1")
    public String getDate(@RequestParam("eXareaName") String eXareaName,@RequestParam("cPrice") String cPrice,@RequestParam("cCompared") String cCompared,@RequestParam("cPercentage") String cPercentage ){
        return rankingService.selectRanking(eXareaName,cPrice,cCompared,cPercentage);
    }

}

